Processes bitmap and returns a mask where foreground pixels should remain visible.
segmentation mask for bitmap.
source image to segment.